package com.computergames.server.message;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString(callSuper = true)
public class LoginResponseMessage extends AbstractResponseMessage<String> {
    private String modeChoiceResponse;

    // 添加无参构造函数以供Jackson反序列化时使用
    public LoginResponseMessage() {}

    public LoginResponseMessage(boolean success, String data) {
        super(success, data);
    }

    public LoginResponseMessage(boolean success, String data, String modeChoiceResponse) {
        super(success, data);
        this.modeChoiceResponse = modeChoiceResponse;
    }

    @Override
    public int getMessageType() {
        return LoginResponseMessage;
    }
}

